"""API 当前access相关功能实现模块"""
from fastapi import HTTPException

from service.current_connect_service import CurrentConnectService


class CurrentConnectServiceAPI(CurrentConnectService):
    """
    API 用于请求 CurrentConnectService 实现类.  
    - 这个类是 API我们通过过度驱动实现与相关的特定异常处理.
    """

    def raise_exception(self, status_code: int, detail: str = None):
        raise HTTPException(status_code=status_code, detail=detail)
